<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>thymeleaf内置对象</title>
</head>
<body>
	<span th:text="${msg}"></span><br>
	<input th:value="${msg}"><br>
  thymeleaf内置对象#strings使用<br>
 <span th:text="${#strings.isEmpty(key)}"></span>
 <hr/>
 <span th:text="${#strings.contains(msg,'9')}"></span>	
 <span th:text="${#strings.contains(msg,'t')}"></span>
 <hr/>
 <span th:text="${#strings.startsWith(msg,'t')}"></span>
 <span th:text="${#strings.startsWith(msg,'h')}"></span>
 <hr/>
 <span th:text="${#strings.endsWith(msg,'t')}"></span>
 <span th:text="${#strings.endsWith(msg,'d')}"></span>
 <hr>
 <span th:text="${#strings.length(msg)}"></span>
 <hr>
 <span th:text="${#strings.indexOf(msg,'o')}"></span>
 <hr>
 <span th:text="${#strings.substring(msg,5)}"></span>
 <span th:text="${#strings.substring(msg,0,2)}"></span>
 <hr>
 <span th:text="${#strings.toUpperCase(msg)}"></span>
 <span th:text="${#strings.toLowerCase(msg)}"></span>
 <hr>
  thymeleaf内置对象#dates使用<br>
 <span th:text="${#dates.format(date)}"></span>
 <span th:text="${#dates.format(date,'yyyy-MM-dd')}"></span>
 <hr>
 <span th:text="${#dates.year(date)}"></span>
 <span th:text="${#dates.month(date)}"></span>
 <span th:text="${#dates.day(date)}"></span>
</body>
</html>